package com.demo;

/*
    default的位置和省略
    1.位置
    2.省略
 */
public class SwitchDemo2 {
    public static void main(String[] args) {

        int number=1;
        switch (number){
            case 1:
                System.out.println("number=1");
                break;
            case 10:
                System.out.println("number=10");
                break;
            case 100:
                System.out.println("number=100");
                break;
            default:
                System.out.println("number!=1or10or100");
                break;
        }
    }
}
